package com.systemic.mapper;

import com.systemic.pojo.SubjectFollower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: SubjectFollowerMapper
 * @Description:
 * @Author:
 * @CreateTime: 2024-01-16 12:42
 * @Version:
 **/
@Mapper
public interface SubjectFollowerMapper extends BaseMapper<SubjectFollower> {

    /**
     * 根据话题id删除
     * @param sid
     * @return
     */
    int deleteById(@Param("sid") Integer sid);

    /**
     * 根据用户id查询用户关注了哪些话题
     * @param uid
     * @return
     */
    List<SubjectFollower> selectByUid(@Param("uid") Integer uid);
}
